﻿using d1Common;
using d1Common.Interface;
using d1Project.App_Start;
using Microsoft.Owin;
using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Timers;
using System.Web;
using System.Web.Http;

[assembly: OwinStartup(typeof(d1Project.Startup))]
namespace d1Project
{
    public class Startup
    {
        private bool IsInitilized = false;
        public void Configuration(IAppBuilder app)
        {
            if (this.IsInitilized) return;
            this.IsInitilized = true;

            GlobalConfiguration.Configuration.Filters.Add(new WebApiErrorAttribute());
            //初始化所有服务
            doServices.Instance.InitServices();
        }
    }
}